using System;
using System.Collections.Specialized;
using GeneXus.Builder;
using System.IO;
public class bldDevelopermenu : GxBaseBuilder
{
   string exe_path = ".\\bin" ;
   string cs_path = "." ;
   public bldDevelopermenu( ) : base()
   {
   }

   public override void BeforeCompile( )
   {
   }

   public override void AfterCompile( )
   {
      if ( ! File.Exists(exe_path+"\\client.exe.config") || checkTime( exe_path+"\\client.exe.config" , cs_path + "\\client.exe.config" ) )
      {
         File.Copy( cs_path + "\\client.exe.config", exe_path+"\\client.exe.config", true);
      }
   }

   static public void Main( string[] args )
   {
      bldDevelopermenu x = new bldDevelopermenu() ;
      x.LoadVariables( args);
      x.CompileAll( );
   }

   public override StringCollection GetBuildList( )
   {
      StringCollection sc = new StringCollection() ;
      sc.Add( exe_path+"\\Developermenu.exe");
      return sc ;
   }

   public override bool ToBuild( String obj )
   {
      if ( ( obj == exe_path+"\\Developermenu.exe" ) )
      {
         if (checkTime(obj, cs_path + "\\Developermenu.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tpersona.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tcargos.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tciiu.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tdepartamen.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tdistrito.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tpais.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tprovincia.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\ttipodocume.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tnivelestud.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\testadocivi.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tpersonatel.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tsituacionl.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\templeados.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tproveedore.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tcontactos.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tcreditos.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tfacturacio.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tproductos.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tsucursales.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tbancos.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tdocumentos.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tmarcas.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tmonedas.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\ttipoautomo.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tmodelos.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tcondicione.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\ttipodeprod.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tsubtipopro.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tclienteveh.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tmmgus10.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tmmusu10.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tclientes.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tparametros.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tparciain.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\tcompania.cs" ))
            return true;
         if (checkTime(obj, cs_path + "\\ttabsis.cs" ))
            return true;
      }
      return false ;
   }

}

